package com.yaj.myfactorysupport.controller;


import com.yaj.myfactorysupport.entity.TTrailSmtRoll;
import com.yaj.myfactorysupport.service.TTrailSmtRollService;
import com.yaj.myfactorysupport.util.RespBean;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author wei
 * @since 2021-06-15
 */
@Api(tags = "TTrailSmtRollController")
@RestController
@RequestMapping("/myfactorysupport/t-trail-smt-roll")
public class TTrailSmtRollController {
    @Autowired
    private TTrailSmtRollService tTrailSmtRollService;

    @ApiOperation(value = "登录试做Smt部品轴配当情报")
    @PostMapping("RegTrailSMTRoll")
    public RespBean RegTrailSMTRoll(@RequestBody TTrailSmtRoll tTrailSmtRoll){
        return tTrailSmtRollService.RegTrailSMTRoll(tTrailSmtRoll);
    }
}

